package io.renren.service.impl;

import io.renren.dao.AppUpdateDao;
import io.renren.entity.AppUpdateEntity;
import io.renren.service.AppUpdateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("appUpdateService")
public class AppUpdateServiceImpl implements AppUpdateService {
    @Autowired
    private AppUpdateDao appUpdateDao;

    @Override
    public AppUpdateEntity queryObject(Integer id) {
        return appUpdateDao.queryObject(id);
    }

    @Override
    public List<AppUpdateEntity> queryList(Map<String, Object> map) {
        return appUpdateDao.queryList(map);
    }


    @Override
    public int queryTotal(Map<String, Object> map) {
        return appUpdateDao.queryTotal(map);
    }

    @Override
    public void save(AppUpdateEntity appUpdate) {
        appUpdateDao.save(appUpdate);
    }

    @Override
    public void update(AppUpdateEntity appUpdate) {
        appUpdateDao.update(appUpdate);
    }

    @Override
    public void delete(Integer id) {
        appUpdateDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        appUpdateDao.deleteBatch(ids);
    }

    /**
     * 根据参数查询列表(无分页，无排序)
     *
     * @param map 参数
     * @return 列表
     */
    public List<AppUpdateEntity> queryListByParam(Map<String, Object> map) {
        return appUpdateDao.queryListByParam(map);
    }

}
